import {http} from "@/utils/http";
export default {
	

	// 获取奖品列表
	async getLotteryPrizeList(){
		return http.get('plugin/getLotteryPrizeList')
	},
	
	// 开始抽奖
	async lotteryRun(param = {}){
		return http.post('plugin/lotteryRun', param)
	},
	
	// 获取记录列表
	async getLotteryLogList(param = {}){
		return http.get('plugin/getLotteryLogList'+uni.$u.queryParams(param))
	},
	
	// 获取奖金池数据
	async getBonusData(param = {}){
		return http.get('plugin/getBonusData'+uni.$u.queryParams(param))
	},
	
	// 获取领取记录
	async getBonusLogList(param = {}){
		return http.get('plugin/getBonusLogList'+uni.$u.queryParams(param))
	},
	
	// 领取分红
	async receiveBonus(param = {}){
		return http.post('plugin/receiveBonus', param)
	},
}